//
//  HttpNetworkTool.h
//  NOVASleep
//
//  Created by db J on 2020/10/30.
//  Copyright © 2020 NOVA. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HttpNetworkTool : NSObject
+ (void)POST:(NSString *)URLString  ReadCache:(BOOL)readCache Parameters:(id)parameters Success:(void (^)(id data))success Failure:(void (^)(NSError *error))failure;

+ (void)GET:(NSString *)URLString  ReadCache:(BOOL)readCache Parameters:(id)parameters Success:(void (^)(id data))success Failure:(void (^)(NSError *error))failure;

/**
 监听网络状态,程序启动执行一次即可
 */
+(void) checkNetworkLinkStatus;

@end

NS_ASSUME_NONNULL_END
